/**
 * @apiDefine member 会员
 * @apiHeader {String} token 用户登录获取的token
 */


/**
 * @api {POST} /member_create 创建会员
 * @apiSampleRequest /member_create
 * @apiGroup member
 * @apiUse member
 * @apiParam {String} username 手机号
 * @apiParam {String} [password] 密码
 * @apiParam {String} [building_no] 楼号
 * @apiParam {String} [unit] 单元
 * @apiParam {String} [level] 楼层
 * @apiParam {String} [house_number] 门牌号
 * @apiParam {String} [name] 业主姓名
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0,
 *     "data": {
 *         "id": 56 // 会员ID
 *     }
 * }
 */


/**
 * @api {POST} /member_detail 会员详情
 * @apiSampleRequest /member_detail
 * @apiGroup member
 * @apiUse member
 * @apiParam {Number} [member_id] 会员ID，username二选一
 * @apiParam {String} [username] 会员名称、手机号，member_id二选一
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0,
 *     "data": {
 *         "id": 6, // 会员号/会员ID
 *         "username": "15904965203", // 会员名称、手机号
 *         "usdt_value": 290751.69, // 余额
 *         "user_level": 2, // 等级
 *         "point": 10846.7383, // 积分
 *         "storage": 48.2, // 仓储卡
 *         "member_info": {
 *             "phone": "0",
 *             "building_no": "1",
 *             "unit": "2",
 *             "level": "3",
 *             "house_number": "4",
 *             "name": "啊",
 *             "created_at": "2021-08-06T17:45:28",
 *             "com_name": "市府社区",
 *             "shop_name": "新天地超市"
 *         }
 *     }
 * }
 */


/**
 * @api {POST} /member_query 会员查询
 * @apiSampleRequest /member_query
 * @apiGroup member
 * @apiUse member
 * @apiParam {String} keyword 手机号
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0,
 *     "data": [{
 *         "id": 2, // 会员号/会员ID
 *         "username": "13604066495", // 会员名称、手机号
 *         "usdt_value": 8501.9, // 余额
 *         "user_level": 0, // 等级
 *         "point": 0.0, // 积分
 *         "name": "达文西" // 业主姓名
 *    }]
 * }
 */


/**
 * @api {POST} /member_update 更新会员信息
 * @apiSampleRequest /member_update
 * @apiGroup member
 * @apiUse member
 * @apiParam {Number} [id] 会员ID
 * @apiParam {String} [building_no] 楼号
 * @apiParam {String} [unit] 单元
 * @apiParam {String} [level] 楼层
 * @apiParam {String} [house_number] 门牌号
 * @apiParam {String} [name] 业主姓名
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0
 * }
 */
